<div class="layui-row" style="margin-top: 10px; margin-left: 10px;">
  <button type="button" id="reset-print" class="layui-btn layui-btn-normal layui-btn-sm">重置打印状态</button>
  <input type="hidden" id="pick-id" value="{$pick.pick_id}"/>
</div>
<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="info-id"></th>
            <th>订单号</th>
            <th>是否打印面单</th>
            <th>图片</th>
            <th>SKU</th>
            <th>数量</th>
            <th>产品名称</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="pick.info" id="item" key="ik"}
            {php}$countGoods = count($item['goods']);{/php}
            {volist name="item.goods" id="goods" key="gk"}
                <tr>
                    {if $gk == 1}
                    <td rowspan="{$countGoods}">
                        <input type="checkbox" class="info-id" name="ids[]" value="{$item.info_id}">
                    </td>
                    <td rowspan="{$countGoods}">
                        <span class="copy-text">{$item.order.order_sn}</span>
                    </td>
                    {/if}
                    {if $gk == 1}
                      <td rowspan="{$countGoods}">
                          <span class="{$item.print_user?'text-yellow':'text-muted'} print-status">
                            <i class="fa fa-circle"></i>
                            <span class="item-text">{$item.print_user?'是':'否'}</span>
                          </span>
                      </td>
                    {/if}
                    <td width="100"><img src="{$goods.image_url}"></td>
                    <td>
                        <span class="copy-text">{$goods.sku}</span>
                    </td>
                    <td>{$goods.qty}</td>
                    <td class="text-left">{$goods.name_ch}</td>
                    {if $gk == 1}
                    <td rowspan="{$countGoods}">
                      {if $item.print_user < 1}
                      <a class="layui-bg-blue layui-btn layui-btn-sm print-label" is-print="{$item.print_user}" info-id="{$item.info_id}">打印面单</a>
                      {/if}
                    </td>
                    {/if}
                </tr>
            {/volist}
        {/volist}
    </tbody>
</table>